package main

import "fmt"

type Student struct {
	name   string
	gender string
	age    int
	id     int
	score  float64
}

func NewStudent(name string, gender string, age int, id int, score float64) *Student {
	return &Student{name: name, gender: gender, age: age, id: id, score: score}
}
func (s *Student) say() string {
	info := fmt.Sprintf("name=[%v] gender=[%v] age=[%v] id=[%v] score=[%v]",
		s.name, s.gender, s.age, s.id, s.score)
	return info
}
func main() {
	s := Student{
		name:   "zhangsan",
		gender: "male",
		age:    15,
		id:     1,
		score:  99,
	}
	fmt.Println(s.say())
}
